<%
    if session[:user]
        session[:user] = nil;
    end
%>
<%= render :partial => "navigation" %>

<div id="containerBody">

<!--[if lte IE 6]>
<div style="width: 100%; color: #FF0000; clear: both; margin-top: 1em; float: left;">
  You are using an old version of Internet Explorer and this site won't load properly... please update your browser, or better yet, switch to a better browser! <a href="http://www.google.com/chrome">Google Chrome</a> or <a href="http://www.getfirefox.com">Firefox</a> are fine choices. :)
</div>
<![endif]-->

<% form_tag :action => "login" do %>

  <div style="width: 195px; float: left; margin: 3em 0 3em 20px;">
    <div style="font-weight: bold; font-size: 1.3em">Alpha Phi Omega</div>
    <div>Alpha Alpha Chapter</div>
    <br>
    <p>University of Illinois<br>Urbana Champaign</p>
    <br>
    <% if (flash[:warning]) %>
    	<font color="red"> <%= flash[:warning] %> </font><br><br>
    <% end %>
		<div>Username:</div><div><%= text_field_tag "username", nil, :maxlength => 30 %></div>
		<div>Password:</div><div><%= password_field_tag "password", nil, :maxlength => 30 %></div>

		<div style="margin-top: 1em"><%= submit_tag "Log In" %></div><br>
		<%= link_to "Forgot Password", :action => "reset" %>
  </div>

  <script type="text/javascript">
		//<![CDATA[
		Event.observe(window, 'load', function() {$('username').focus()}, false);
		//]]>
	</script>

  <div style="width: 730px; float: right; text-align: center;">
    <iframe src="//www.google.com/calendar/embed?mode=MONTH&amp;showNav=1&amp;showTabs=1&amp;showTitle=0&amp;showDate=0&amp;showPrint=0&amp;showCalendars=0&amp;showTz=0&amp;height=400&amp;wkst=1&amp;bgcolor=%23ffbf00&amp;src=8bev6a45snflo154gii06ddp08%40group.calendar.google.com&amp;color=%232952A3&amp;ctz=America%2FChicago" style=" border-width:0 " width="700" height="400" frameborder="0" scrolling="no"></iframe>
  </div>


<% end %>

</div>
